package cn.springmvc.dao;


import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import cn.springmvc.model.Step1;
import cn.springmvc.model.Step1Example;
@Repository
public interface Step1Mapper {
    int countByExample(Step1Example example);

    int deleteByExample(Step1Example example);

    int deleteByPrimaryKey(Integer id);

    int insert(Step1 record);

    int insertSelective(Step1 record);

    List<Step1> selectByExample(Step1Example example);

    Step1 selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Step1 record, @Param("example") Step1Example example);

    int updateByExample(@Param("record") Step1 record, @Param("example") Step1Example example);

    int updateByPrimaryKeySelective(Step1 record);

    int updateByPrimaryKey(Step1 record);
    
    List<Step1> getStep1ByNianfen(@Param("year")int year);
    Step1 getStep1ByNameAndNianfen(@Param("year")int year,@Param("name")String name);
}